Clean up compiler warning in printf
Make some exceptions and wrap devicePath
Factor out readPump
Streamline main's actions and exception handling