added cask installation to emacs and better logging all around