Added plotting capabilities to peceptron code