Replaced mentions of stack as internal variables
Updated submodule references