Completed Url/File checker, can still be refactored