Place code in ``code`` formatting.

With the previous version of the code, function signatures etc. get inserted as plain text.  A common python construct ``f(**kw)`` thus generates error since structured text thinks this is the start of **bold** text, but then complains because the start tag ``**`` is never closed.

The solution here is to place all code in double hash tags so it is formatted verbatim without interpreting characters as inline markup.

(Technically, this might only be supported by reStructuredText, but since this is the standard for python documentation, that is probably fine.
Fix typo.
Updated tests.
Merge remote-tracking branch 'origin/patch-2' into patch-1
Added new function asreStructuredTest to keep backward compatibility
- To keep code clean, functionality is implemented in asStructuredText
  with an added flag rst with default value False to preserve behaviour.
Changed name to asReStructuredText for CamelCase correctness.
Updated CHANGES.rst.
Flesh out changelog entry for 'asReStructuredText'.