Moved prefered file format setting to constance
Moved a lot of settings variables to constance