removed debugging stuff
fixed pdf download