Added patterns to ignore IntelliJ files.
Bufix: the return type of get(index) method was not consistent.