Document the clear function