Add loop counter to valueFromSerial functions, output commands as char