Added input and fixed Layerdata to MLP