add option to stop process with signal
remove wrong parameter variable for perceptron