aadded clear and getAll functions
Merge pull request #1 from dotch/master

added clear and getAll functions