Emacs cleanup and documentation