Add some instructions and fix a index bug