added a simple nial-mode for emacs