Added serverstate packing and fixed some errors