Added API documentation via dox.