add gitignore and fixed register editor