Better command line support. Also don't write out a file that wasn't changed.