Cleanup of unused function.
Renderer improvements.
More documentation.