Mastered environment.py
major cleanups