Merge pull request #2 from piotrantosik/master

Refactoring, readme typo, PHPUnit test, travis ci..
update phpdoc comments, fix composer.json