Functions for calculating PSR
PSR functions first commit
More functions for calculating PSR
Squirrel data added