I familiarised myself with some of the code by fixing a bunch of minor visual issues. I'll add comments to list what I fixed in details.