refactored private methods, updated link to api doc
added index.html as api doc
Merge branch 'master' into gh-pages