Updated library and documented the examples