init settings file, issue #4
fix issue 2
fix issue #1