added .gitignore
completed the functions