Added unit tests and subscripting support. Revised leveldb compile instructions.