Converted to python3
Improved shutdown management
Validated suppression of parameters in initialise, and corrected resulting bug.