added get_output to hidden layer, fixed predict on mlp
refactored for consistency
added predict method
added tests for logistic and MLP