Add clearCompleted function.

Add clear completed functions.
Add docs for each function.