Fixed buffer unpinning so it is constant time. Added a buffer ID for testing purposes. Added custom toString methods to these three classes.