organising code a bit, finishing implementing prefs repo, started prefs controller