added config.txt editor and sanitised data from the config (prevents script error from malformed options (without assignment)