Further developments

- A couple of minor fixes
- First version of the script to produce latex tables for the AN
- Optimised fitting script, now storing the templates in JSON format