Rendering reworked, added Renderer class, few fixes