Revert "fixed a lot of memory leaks and switched to the gnu99 c standard (to allow for(int i = 0 ...) loops)"

This reverts commit bc5b01688837e660219c5320595704191f250bef.

Conflicts:
	data.c