Documenting api and api.ext; closes #49.