Added comments to for-loops etc.
Stylechecker clean-up.