Added version tree walking
Moved internal constants and structures to .c
Made index node size configurable