Merge pull request #2 from amitmula/master

initial commit
added some logging and refactored code