Changed a func name to be more relevent and changed the error handling
Added .travis.yml file for automated testing