Major updates in Environment

Most of the methods in the Environment class have been completed.