Removed apply button from preferences dialog...
Implemented preferences read/write...