Update library with latest iteration of code, add sample usage to the readme