WhereCursor added. Main class rewritten

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>