added gen_book.sh