change configuration from globals to yaml file.

removed global paths consant and replaced it with a yaml configuration file, which separates data from logic more cleanly