Store diff statistics, and outlier classification in JSON files cc #2

Also, did a mass refactor of the modules and temporarily removed self tests