removed print and closed fd
Extended makefile

Added clean and debug to it.