finished matrix version of the init and feed_forward methods. changed sigmoid function to tanh.