changed for to do

removed references to for loops
added specific description of how do function works