updated the examples and added sec:logout function