Added size indicator to resource pool and a test class for it.
Added some more comments.