add API docs and fix environment egg from "=" to "+="