add ann and modify perceptron init