Added .gitignore
Don't use deprecated methods