Added support for batch sending. Fixes #7
Merge branch 'develop'