Fixed include for index pages, for #7
Added the basics for getting the substr, fixes #5
Added helper for finding an index for the substring, fixes #6