added index generator example, fixed some bugs
fixed Def test
moved content index to src