refactored
--log
error handling
added client for debugging

found and fixed a bug in the process
exit
unsquish
Merge pull request #2 from Runnable/refactor

Refactor