Better init function, rename editor scripts