MyPreferences class written.

MyPreferences is a class used to easily get and set preference values.
They are here stored into a file name "prefs.dat".