code cosmetic
added debug mode
missing return statement
log matching links in debug-mode
handle invalid filterMode
added message on removed contents