logging mechanism added
example usage is improved
date bug fix