added periodic reading of serial port, still needs some work