Added the mainfile editor.c
Rewrite the whole editorFunctions includes