Add documentation and API