added error check to fiction function.
added error check to nonfiction function.
updated version number.