Added debug renderer, improved 3d renderer