Expanded docstring for stack class.