Adds travis build icon
Refactor client code into main client class