Master clear method

new commit with changes discussed.