Make code comments Doxygen friendly

Bonus: Documented XML writer to match LCF writer