Add main.c and modify boot.c