Copy index to root.

Closes #1.