added code to analyze darktest
added lighttest analysis code
added code to analyze reversal learning