added intersectBox to ray
cleaned up comments
fixed undeclared variables