removed debugging printouts. Fixed a few links