modifications to help make heroku work
improves argument handling
uses env vars to check for dev/debugging environment
adds some documentation
adds testing target