added option for debug flag: "d" als filter prints debug info. "d+" even more