Added a configuration for travis
Added the calculations with NaN