Fixed stanley's syntax issues

But ray tracing doesnt work. Needs more testing.