Merge pull request #1 from bduong/master

Refactor of gradle build and added functionality
Add configuration for Travis CI