Fixes for a few bugs in MAEC40 Module and Mappings

This fixes a few bugs in the MAEC 4.0.1 output module as well as the API call mappings.