Update Environment.java

Reformatted and added comments so I can submit it.