added code comments and travis.yml file
added comments and fixed jscs errors