use return for #index method, instead of next.
remove TOC snippets.
changed to use new style for mediawikiparser.
comment-out debug prints.