added spawnremove command, fixed a lot of bugs