cleanup of main.c

Clean up ready for tomorrows YouTube video where we will ass a file reading sequence to the main.c file