Merge pull request #2 from mehulkar/master

logging in functionality