Basically recreated triangle.c to make more understandable. Created a more robust testing suite. Updated makefile to use dependenciest.