Coding style fixes

I've attempted to make it PSR-2 compliant. I have not renamed the class and some of the functions to make them camelCase, as is the standard, but I've fixed everything else.

Also note that the number of arguments to the dns record functions is a bit extreme. It may be a good idea to pass an array of parameters instead many separate ones. I would have fixed this, but I've left it because doing so would break backwards compatibility, as with the function names.