Change README.md, documentation and little amelioration

Change README.md to contain usage examples.
Change the documentation to include the code examples.
Change the implementation to use memset to initializing memory of
context variable.