Revise activation_function and perceptron to accomodate new weighted sum module