added binario.c and fixed returns in tris.c