added some comments in code. added makefile for gcc compeler