Added instructions, check_vals.py; modified trial_stats.py to throw away invalid matrices when generating average matrix