Updated example for attaching files 

This is for ticket #620
Merge pull request #622 from gnickell/patch-1

Updated example for attaching files