Add defstruct

Couldn't really test this but I guess it should work :)
Merge pull request #20 from mweibel/patch-1

Add defstruct