Added documentation to the Preferences class