Renamed and added a few functions. Mostly started the convention of distinguishing functions that operate relative to a space from those relative to a location using 's' and 'l', respectively. Also added comments to the header files, as I was forgetting what functions did and how they did it... TODO: Added replaying of locations of spaces in UI to more efficiently use the layering concept.