Formats code.
Adds crude support for FOR loops.