Added main function

Added main function from which all the other functions are called so that there needs to be only one response URL