Add pry
Fix the bug that pattern's summary can not be copied properly.
Refactor to include entries in deal patern search.