fixing some typos in the number of time samples to consider
fixing wrong condition for the generation of npe