Added a constructor and setting createdAt
Merge pull request #898 from pfwd/exchange-bug

Added a constructor and setting createdAt