update makefile and main()