Added Javadoc and a check to see if the requested XML/XSL/PDF files can be read.