[WiP] Various changes to moduleFactory and CapabilityFactory
Modified various methods to improve exception behavior
Modified HardwareAbstractionLayer
Minor changes