finished pdf details and removed unused console logs