add documents
improve tests for pool.py