Improved the serial port management, fixed some bugs. Code commenting and cleanup.