Corrected size of entity class. Added messagebox-based asserts to ensure formal correctness of class sizes.