update readme, add logging, refactor
Merge pull request #5 from anandkumarpatel/refactor

update readme, add logging, refactor