Added nctest.c and did quick hacks