Multiple example fixes, added nFunc to getIndices