Convert records to structs
Merge pull request #124 from ericmj/structs

Convert records to structs