Fixed constructor
Merge pull request #1 from adam-paterson/master

Fixed constructor