added documentation in latex