fixed a few bugs within createFunc.c, added initialize function to
reuse code, changed a few printf's in the trace functions to get
rid of compiler errors.

added wrap around, if the number of threads specified is less than
what is created, it starts back at the beginning