Using extend for default options.

Closes #39.