adding error checking code for io_interface.cpp
added error checking code to io_interface, main, operation_check and random_bignum_generator