Adjusted the program to ensure it is able to handling opening files at startup (accepting arguments upon startup to open files).