Update library.rb

added comments