Fix typo enviroment -> environment
Update documentation setEnvironment -> environment
Reformat documentation