Refactor code, add tests and CI Travis

Hi, I've refactored a little code and write some tests also add help command to default list of commands