Improved main func， cng how2
added Makefile