Added leave command and started on flag managing
Updated .gitignore