add 'options' in attachResource(); fixes #45
Merge pull request #48 from pmjones/develop-2

add 'options' in attachResource(); fixes #45