Add idea to gitignor and do some little fixes