Added point-rotating utility, a bit more refraction stuff, and slightly adjusted some logic