Fixed some major bugs in EditorGui and added spaces before some methods