Fixed bugs in index, fixed commit op, added rm op