Reformatted the executable part of main to look nicer

Just tidied up a bit.