bug corrected
makefile implemented