docs: sample usage code improvements