reformated code;
bg downloading in service works now, and displays a progress notification