Added spawnobjects and some fixes in Client