Added generic function to find and print long-period lightcurves of given period span.