Providing some checking on reset
Merge pull request #12 from Belelros/master

Providing some checking on reset