Improved the documentation and multi-layer perceptron speed