Rewritten the script as an OOP script; added argparse to parse the command line arguments; added some checks for files/folders as well as checks on the URL