Incremental commit

Prepare for another repository management
Add unit test, and fix few bugs
Small functionarity fix

Gotta investigate the 400 Bad request; review the internal data
structure
Bug fix for recursive searching

Fixing for recursive searching and internal data structure.
There is a quite strange thing that no set will be generated when
searching for some Japanese words.