master add master-main.c and edit