Added time logging to serial communication for debugging purpsoses and fixed bug with JSSC code