move serialPort and baudRate to the beginning of homer.py
improve printFile() to use ptr.waitOk() and add comments