Fixed issue #79 and added logic to store nonce and check subsequently to detect replays
Merge pull request #81 from BadriL/master

Fixed issue #79 and added logic to store nonce and check subsequently to detect replays