added makefile and scanf halt