Fixed a bug in edit (memory allocation). Added a generic "test.c"
program.