Bugs fixed and unused functions and useless comments removed
Merge github.com:MordiJC/ConfigFile