Splitting DocumentIndex.
Refactoring CommandLine.
Fixing backspace bug in CommandLine.