Rename markdown_stub to text_stub, fix a few bugs
Update example notebooks