fixed some typos; corrected calculation of timeOut value