Improved Configuration files

Adjusted the general syntax for the files
Corrected default file writing for perks and main
Corrected reading for main.cfg