made reset work
Merge pull request #4 from trbm/jinpa/reset

made reset work