Added a clear method. Testing to ensure that when an element is removed, if it's the last, reset the end (tail) item