Add comments for BufferedStack class