Update API to use new language features.
Merge pull request #1 from davelxmos/xt13

Update API to use new language features.