enable multiple attachments

I have changed a few things so that the package now is capable of sending multiple attachments.