Fix dependency in Make, Added part of the main program