fixing some typos in the description and in the functions comments