Refactor Teacher#teach
Clean up and update teacher spec
Add bad input handle in perceptron