Adds stats.py and analyse_psf.py