Renamed initialize function to allocate. Changed myid from unsigned int to int