Added some more HTML4 compliance and debugging.