Added phpdoc for generating documentation at build time.
Added doc generation to travis.