Attempted fix for updating the library
Added update functionality