Update comments and add API docs to readme.