First version of nbt reader