Cleaned up and documented EntityPool