Improved API documentation. #17 [ci skip]