fixed up latex doc