Fixed the examples & added documentation