Changed the way serial communication handles clock changes, closes #7