genPLinks.py added