Added Config file, removed global vars from other  files