Merge pull request #75 from sajinidesilva/slots_Imp

slot impl - avoid message loss due to inactive subscriptions
refactored code