Added immutant initialization that has a proper shutdown function
Refactoring and ns reorganization for tidiness and goodness