Added documentation routines and some tests.
Update travis.