Change detection working! (I think)

Database needs a lot of tidying up though, and the default units etc.
and pretty printing should probably be changed.