Micelanious fixes for various warnings

Several fixes for unused variable, unhandled enumeration values and Initailisation reorder warnings.