Rewrite demo assignment

This is a proposed implementation of the assignment layout discussed in #67 .

Resolves #67 
I think explanation should be a separate field parallel to ``type`` and ``test``, rather than a comment within the doctest block.