corrected some typos
tested functions