added userpreferences(), added documentation, fixed some typos