[SERIAL] Fixinga few issues with the serial device interface.

Checking for input message size before indexing it with get(0). Removing obsolete parityenb parameter from config file. Cleaning out output messages of device. Return false when device fails read/send operation.