Removed variable from global scope
Better semantics
Readability
Readability
Simplified closure
Merge pull request #10 from gbbr/pool-c7

Some corrections