Log changes

Changing various things, including now matching using log scale instead of linear scale. Makes adding redshift in easier. Also greatly simplified the chi2 matching.