Index function first spell (closes #245)
This realizes the index function needed for gsstart and gssend, thus also partly addressing #216 (closed) and #234 (closed).
This realizes the index function needed for gsstart and gssend, thus also partly addressing #216 (closed) and #234 (closed).