fixed up LDA and confusion matrix code. added recurrent network decoder (in progress)