Add update mode.
Add comments.
Process xref element.
Remove trailing whitespace.
Fix process in right tr element.