Restuctured code, settings/menu in iteratable array. Almost ready for version 1.0