Fixed compilation of the test program
Load/save all settings (#46), cleanup of handling of settings