fixed layer switching, \ns, and added "layer" attr checking for spawnpoint. annoying friction bug still present.