updated version to reflect README, updated error check