Fixed keyword search and implemented keyword result callbacks.

Also little bugfixes here and there.