chaned pdf parsing > added some debugging