perceptron + style fixes