in essence functional read file. can be compiled and ran on its own. some clean up and merging still required for it to be useful.

biggest gripe is that filename varaibles don't work