added test.c, has some code used to test out some ideas