added gethtmlfile function
added condition to check if url has downloaded file successfully. Some bug with sync vs. async node behaviour
sending downloaded filename for checks