Added documentation to the pool class.