try this link i did the install 2 years ago very well explain
http://www.mazdas247.com/forum/showthread.php?123834259-Factory-Remote-Starter-Install-and-Program&highlight=oem+remote
you can do the mod with the universal sunroof module relay from exled USA the module fit ok beside the sunroof motor, the wiring is a pain in the ass but it work
my friend did the wiring
https://www.dropbox.com/s/w1sto60ba1dqya7/IMG_0945.m4v?dl=0...
found this web site last year but they only made a plug and play relay for Kia and Hyundai i email them and ask if they have one for Mazda they reply me and said that a universal relay will be available soon .got an email last week and the relay is ready
here is the link...