working pgm

requires 2 command line arguments - 'logfile_location' 'directory_loc'