added comments for parse and environment methods