clean-up import, whitespace, not used variables
use new pdf lib