Added docs for stack function.