Improved raycasting a bit and added interactivity