added Apache2 license
Added progressive search, minor refactor