first implementation of cpg. dynamics and integration almost done!