changes to main.c and books.c