add functions

fix "Create preset win"
add "config file"
add "presets dir setting"