Fixed all examples tests. Added .idea to .gitignore.