Enabled debug writing to file or stdout and enabled reading from file on startup. Options: -f and -w