add osx battery script, clean up vimrc