Added some initial API documentation.