(#108) documentation: unify code-snippet format, and some polish: more polish