Made changes to reporting and added a confusion matrix generator. General cleanup and comments.