renaming fan.cc to fusion.cc
test the index functions, fix a silly bug