add editor function and makefile