Documenting sf:index-of-longest-string and sf:index-of-shortest-string
Multiple doc update.

Also some minor schema an processing changes.
Finished updating function and template descriptions

Also minor code changes as required.