Added the base editor with no functions, and refractoring/code cleanup