Move plotting to a separate file. Create a reference data learning function
Starting to do a write up