add .gitignore template, update command_line feature