Add support for default values

Closes #6