fixed env variable addition
added comments