Added error saving, a test ray-tracing feature, and fixed some things.