added code to retrieve content from book files