added file reader. Next task is to refactor thr ray caster into a class.