Reformatted code.

It's now actually quite pretty to look at!