Added a close to the outfile function and added necessary exceptions
lab8; no significant changes
lab8; results generated by useTable driver.
lab8; all important issues fixed and lab submitted.