add latex to the doc build process. fix namespace comments again.