Fixed Bad Comparison.
Added code to output permutation runs to .csv.