Input/output fixing in Main
Merge branch 'nathan' of https://github.com/Winston-Chan/CPSC449 into nathan