improved example variable names.
fixed bug caused by reversed order of arguments to logging methods.
added unit tests.
added a README with usage examples.