added function to pretty-print book list