Fleshed out a little bit of the ray tracing code
Minor edits to IO