Add TODOs. Replace for with forEach.

Add 21 TODO comments.
Use more readable forEach method of Array.