Adding new template, adding htmlTOpdf and refactor

adding the last template, adding the html2pdf library and using it to create pdfs from htmls and refactoring the code.