default editor to vi
fixed a couple of issues and much better log help