use logging instead of System.out.println
Merge pull request #203 from raghavgautam/log

use logging instead of System.out.println