add documentation for stack