Improved API documentation