Updated main cpp to include File I/O