makefile added
fixed seg fault