Add WildCard support, update .gitignore

Add WildCard support, update .gitignore with IntelliJ specific entries,
remove unused .toString() methods, simplify boolean returns and if
statements.