Updated samplecode files