Added support for default values. Closes #9.