moved the sglib.h file
rewrite Makfile under samples