Documents internal API

See #167