added the main.m script