adding case classes to serialize and deserialize staleness related stuff. Classes names are not quite correct.
I'm not sure if there's an easy way not to have the cluster class, or the word class, and just serialize and deserialize as a Seq of primitive stuff.
If there is, we should probably change it.