Updated library.h

find a few small problems