added some comments and change net mineralisation function name call