Updated library and example.js