More tweaks, cleanups and code documentation on layer renderer.