Refactoring after review
* Unnessecary method was removed
* Unnessecary objects creation were removed
* Gitignore file was modified
* Method name was changed (AddIndexRangeCheck -> addIndexRangeCheck)
* Unnessecary code duplication was removed