added ejs templates
finally, PDF generation semi works