adding some commenting to re_search.py