added a bunch of settings; save and refresh buttons working; more code generation