Update .gitignore. Add compatibility classes