Main module rewritten and commented

FIXED: neural network input parameters