Got project to build. Put some work into bt_index.cpp