Basic querying added.

Some thoughts on formatting are described in bloom_test.js