add removeAllBooks function and fix add book duplicate error