Little refactoring and encapsulation review
Added streaming to allow console output forwarding into wgrep program