Preferences related classes added.
Javadocs added.