added control for "simple preferences"
various corrections
added simple-preferences option