Add "for" snippet, remove "else", and fix "comp" and "gen".
Fix indenation.