If you're making a new file, might as well hit it with astyle using the recommended settings, there are a good number of coding standard violations in here, likely from code that was copied in.