adding pluggable range key comparator
reformat code.
add javadocs. add distinction between a key value table and a hash range table.