stack docs

fixes #1967