fixed begin, end fn, added .gitignore file