Improved documentation of public API.