Integrate Lomb-Scargle rename variables

Added integration to the Lomb-Scargle function to calculate period.
Renamed sq2 and sq3 to sq.