added doxygen comments for Stack