Add powerline mode, misc. minor changes.