Updated code that handles re-loading of files modified outside of Emacs.