A refactor/bug-fix

My module.exports logic for the module was unnecessarily complicated, especially since this is supposed to act as an example. Also, there was a bug the unit tests discovered that needed squashing.
Added travis integration

In order to use the TravisCI platform for automated testing, a few changes needed to be made to the codebase.