Added logic to check for end of book and added read speed to config instead of hard-coded