prettier version of triangle.c and small update to makefile