Added Initialize() for settings
Two minor bugfixes.