Improvements to sudo and do

Fixed description and adde faulty command checking