Added trace function for single ray, recursion limit
Improved render function. Conflicting includes, need to clean up messy headers.