Added documentation hooks and modified travis-ci configuration