Updated method signatures

Updated method signatures with proper spacing and changed id to
instancetype.
Add support for Travis CI
Merge pull request #19 from indideveloper/master

Update with id to instancetype and added Travis CI