added smart-mode-line and fixes for term mode and things