Write new docs in restructured text
Made some changes to how envs are handled