Add clear function and code coverage for this
Updated docs