MQ

General fixes and added functionality for the msm.git repository for MQ devices.

Software improvements for MQ devices.