Added documentation for public API