Implemented some testcode for serial port communication