Pullreq nrao

I've added a few improvements; in particular many try, except, finally clauses to make sure the serial port connection gets closed if something goes wrong. Also, ability to set the serial port timeout easily. Finally, added a few convenience functions to simplify common tasks. I haven't thoroughly tested it all, but the changes are straightforward.