Cleaned up contour.c by making unexported functions static
implemented drawing contours
more complicated test_contour example