Update library.sh