Fix most of the common eclipse warnings.
Fix some more exotic eclipse warnings.
Fix bug that some default settings (not actual) were shown on first load.