add .gitignore
refactoring
add security check on editing binary path