fixed path problems so program can be run from different directory than the files