an index generating program. Closes #1