added -n to add notes, started external editor support