More refactoring, newenvironment interface is done
Updated docs
moving newenvironment over environment, started on module testing
tests work