update m4a plugin to math refactor

also cleaned up some withspace fixes