add clear function
add clear function

This actually doesn't add the function yet in an available manner. I'm getting a TypeError (`TypeError: Attempted to assign to readonly property.`) at the commented out line. However it does work in small examples. Still to look up further

related to #43

Haroenv/holmes,Haroenv/holmes