implement to_file option, implement configuration_clear which resets all instance vars