Adding exception logging to the Pool class

This includes adding test cases.
Updated some coments in the Item class.