Updated input stream to use the new read functionality./
Added helper read function to SerialPort.