updated code to generally conform to PSR-0/1/2 coding style
updated @code comments for oxygen 1.8.5
updated comments of htmldom
added phpunit as a dev requirement