Fixed some bugs
fixed program filepath to work with config file