can someone tell me how to program the spikes ???

what do you want to do with them? it is quite easy… just go into the default code under user_routines.c and find the mappings of inputs to outputs. relX_fwd set to 1 will turn the M+ output positive. relX_rev set to 1 will turn the M- output high. Zeros will make them go negative.

if you want relay one to go forward do
relay1_fwd = 1;
relay1_rev = 0;

if you want it go reverse do
relay1_fwd = 0;
relay1_rev = 1;

if you want it to go neutral do
relay1_fwd = 0;
relay1_rev = 0;