Added canvas which shows fraction of misclassified inputs
Fixed a couple of bugs