bug fixes and I have added more functionalities to the DiracBaseSelector