Added Listener functionality and completed some methods in SnitchManager.java