fixed errors in saving delta values

scala 2.10

started preparing for some random testing