serial global object

Took the the serial connection out of a function and made it a global.
This should save us needing to pass it into functions