added user defined patterns argument for grok_match
corrected patterns files paths
added support of regex atomic group by import regex module
fixed a bug of raising a exception when match object is None
removed unused codes