Update library methods and added comments