Update Environment.java

javadoc and fix