most functions seem to be working. dsTest.c driver is now slightly useful