Cleaned up demonstrations: added arrow-key support, fixed major bug with ray generation