Many fixes for parameter passing in pool module
Merge pull request #2 from jamesra/master

Many fixes for parameter passing in pool module