Further work on MLP, added some plain regularization functions