Fixed some bugs having to do with file locations, by looking for files relative to the __file__ variable using os.path