can now run everything from main.c, and added insertion sort