Added DDS.c
added state machine