- Added a method for getting the string representation of a doctype declaration
- Fixed several bugs
- Minor refactoring