Reformatted to my liking

Git noob. This shouldn't effect or spam messages at anyone else I hope.

Used a function to change indenting to suit my editor settings and
myself more.