Added changes from PavelPC
Add idea to .gitignore