minor geometry code tweaking before merging with Mac ver.
implementing ray tracer