FIX Correct reading number of time points

Now works also in the case of tmin and tmax equal to None
Checks for input parameters
Tests for compute_csd