added bindEnvironment and other Environment methods
Merge remote-tracking branch 'origin/master'