Added ability to check in books and cleaned up code for submission