Split clear() into clear() and remove(), improved docs