added saving/loading of settings