Consistent ; use in code samples

Also, rearranged the merge code sample into two examples, rather than intertwined.