added loader logic to the program
it can now load a file through the command interface or at start up.