added docs for stacks