small changes in the function 'tick' are added
the function 'testShockN' is added