Added network code to CNetworkEntity::Serialize()
Cleaned up some code