Fixed segfaults in raytracerIntegrated, added rti.cpp as a working semi-integrated model until the other one can be fixed (Todo for Monday)