verify arguments to serries / parallel functions

Fixes #4
Merge pull request #5 from pkozlowski-opensource/issue4

verify arguments to serries / parallel functions