Added version checking to serialisation and changed doc count error to show -1 for cases where we cannot estimate the error