Index fixed, code now compiles
Merge pull request #24 from hasofanten/master

Index fixed, code now compiles