Add type validation to getter and setter methods.
Add dialyzer line to Makefile.
Merge pull request #6 from kevinburg/master

Add type specs to generated code.