Added documentation and functions to the book.h and book.cpp files.