Fixes some inaccurate documentation. No code change.
Fixes some unused variable warnings.
Added functionality to help with testing: does not set a new nonce if one has already been set. DO NOT set your own nonces in any case other than for tests or you will open a security hole.
Initial Release