Added 'stop' function

I add the STOP function and I modify some function name for reusing.