bugfix in client
make complement overridable, add retry and lookahead support
add explanation of Two-Tries and Lookahead support.