Updated some stuff in library.py