latest files and changes to renderer.cpp