Added comments for functions and confusing if statements in main.js
Added comments for functions and confusing if statements in main.js

harryggg/graphic_serial_monitor,harryggg/graphic_serial_monitor,codebendercc/graphic_serial_monitor,codebendercc/graphic_serial_monitor