Merge pull request #2 from carlyeks/traits

Define formats
Fix build