changing boolean evaluation to === from ==, removing unused filterMatches variable
adding newlines at the end of files