simplified library and updated readme