adding logs
Merge pull request #175 from raghavgautam/master

adding logging
use correct var
Merge pull request #176 from arpitgupta/working

use correct var