Added documentation to Stack class and related classes.