refactor markup.codes to markup.codesSamples to add support for samples, add tests