documentation, dtd and final fix in the parser