Added API documentation
Merge branch 'master' into gh-pages