added .gitignore and two functions to core