Service Functionality updated

added a broadcast receiver, and partial service functionality