Removed many unused methods.  Removed unused classes.
Added tests to verify the logic for learning analysis