tools' namespace created, Renderer class, and more code refactoring