Added & + # to the latex escape function
Smarter recompilation based on references
Fixes #3. Caching implemented for the generation of tex and pdf
Fixes #2. Documentation added + added param for cache