check file existance before removing intermediate files.
refactoring & bug fix
bug fix: change parent class
error fixes and pdf generation works
field name fix