Added file download
Added downloaded file parsing
Removed duplication
Added some more strength to the URL validation function