Fixed while loop.
Fixed typo.
Added two new ways to use for loops.
Merge pull request #716 from LumenTeun/master

Fixed some typos and added more for loops.