add file_length_threshold and check_on_save options to the settings (fix #2 and fix #3)