added documentation comments to environment