adding functionality and gitignore
added functionality and gitignore