Documentation and tidy up of API.
Changed from travis-ci.com to travis-ci.org.