Generate .M files(a few issues with types)