reorganization to a more testable structure
move to minimist for commandline parsing
adds tests and fixes bugs that showed up in testing
checks for empty parameters, adds TODOs for some future improvements
removes errant console.log statements
adds travis config