 (defn saveFile [filename world]
 	"Saves all items, cameras and lights of the given world into a file, in EDN format."
 	(let [itemsVector (saveItems world)
+				groupsVector (saveGroups world)
 				camerasVector (saveCameras world)
 				lightsVector (saveLights world)]
-		(spit filename (with-out-str (pr (vector itemsVector camerasVector lightsVector))))
+		(spit filename (with-out-str (pr (vector itemsVector groupsVector camerasVector lightsVector))))
 	))
 
 ;; Load Tools

				(loadMeshMap (pop meshMapVec) world)))
	))

;; Load Tools for Cameras
(defn addCameras [cameraList world index]
	"Adds all cameras contained in the provided list to the World."

		(addPointLights (lazy-seq (get loadedLights 2)) sceneLight 0)
		(addSpotLights (lazy-seq (get loadedLights 3)) sceneLight 0)
	))

(defn loadFile [filename world]
	"Reinitializes the world and loads items, cameras and lights contained in the given file."
		(let [loadedVector (read-string (slurp filename))]
		(.init world)
		(loadItems (get loadedVector 0) world)
		(loadGroups (get loadedVector 1) world)
		(loadCameras (get loadedVector 2) world)
		(loadLights (get loadedVector 3) world)
	))
