Stat class added for different version of data and small changes to other things. Need to add stat class as field to datanode