added sudo-edit and other minor tweaks