wrote some docs (api/env mostly)