maa_init: fix constructor attribute in maa_init and add working example