Added Spike Function in the maze 
fixed opened thread after main shutdown 
Added TestThread 
some clean up and improvments