Adding idea directory to gitignore.
Adding a general 'name' function.