partially edited ClerkModel and libray.java