Updated RayCasting and fixed some crashes
Merge remote-tracking branch 'origin/master'