use disk to save index content
add Exception output
small adjust according to the change of disk index
refactor 'id' to 'offset', only variable name changed
refactor 'id' to 'offset', only variable name changed