Adds more comments & documentation, moves env variables over to travis