Commited before closing
Added an option to send string or char data to the COM port