Added docstrings to StackEnvironment