Added ErrorLog class and incoporated error logging into FileIO