added error check to report function.
added error check to survival function.
updated version number.