added latex templates
added documentation