Major reorginization of main and FrontEnd - changed Preferences parsing