implemented clear method
fixed uppercade 'V' in onInvalid
reverted changes to example
Merge pull request #12 from joushx/clear

Merge branch clear