Added a flag as function parameter which will help turn on or off the printing log during extraction. did some changes regarding source folder path too.