Merged to the last version

Changed the 'elif' cascade to a dictionary (it's faster)

Made a function for reading the config file(s) out of the while loop

added some exclusions to .gitignore