Added constants: DEFAULT_WHOLE_WORD, DEFAULT_MATCH_CASE, DEFAULT_ADD_LINE_MARKER
Small refactoring