moved index to docsparser
code cleanup