Corrected head - tail confusion
Implemented capacity increase ability when full
Updated tests
Added test to check that the wrapping function works