Added debugging information and implemented stop download method.