added generic pool from npm
fixed pooling code and tests
fixed pooling code and tests