added clear function
Merge pull request #1 from tintinmj/master

added clear function