code-example updates on 1.04 activity standard

Various code-example tidyups: #222 #223