added URL and doctype paramaters.
imrI
:;#
Added validatorurl and doctype options.
Improved temp file cleanup.