Fix static indent issues

This is for #9. This changes indent to 2 spaces and fixes a few static indent issues.

Making indenting perfect with generated code will be a bit of work due to different nesting levels. It might be easiest to use a "beautifier" instead.