Rewritten the editor script.
Updated README.