[PDI-12237]: Added javadoc, removed println statements

also removed dead code