URL fixed.
removed log
code cleanup
function introduced