minor correction to an if statement that missed the explicit check against null
removed my previous "correction" for the if statement...
refactored the creation of the HttpUrlConnection objects to a factory
updated deletion and logging of temporary files to resolve issue #73