added some docstring and move some methods to private methods
added travis conf file