Added some comments, re-generated API documentation.