[FIX] "-i" is not needed anymore before inputs
[FIX] Bug in residuals computation is solved
[FIX] Add h optimization in reconstruction