refactored the slot imlementation code
ccode refactored
Merge pull request #45 from sajinidesilva/slots_Imp

 Refactored the slot imlementation code