Fix NMPB length issue, diffraction
Merge pull request #6 from nicolas-f/fix-bug

Fix NMPB length issue, diffraction