Got the new ray caster working :)
Test for non integer ray casts
Removed now redundant function
Cursory refactoring of the ray caster.