- added some API documentation.