fix commenting and when head == null to return nicely / not do a null pointer exception