Spliting index into an include file.

Fixes gh-183