Initial documentation of API in index page and minor clean ups