changed defaultOpts to use field names for assignment
Merge pull request #315 from joe9/master

Changed defaultOpts to use field names for assignment