Fixed serial port read issues and logger issues