Fix bug when equation shows NaN
Separate MCPI in multiple files