minor doc fixes, move sleep outside of for loop