samplephi instead of Ctest
maxk->maxn
allow in sample* to have positoin out of range
threshold cleanup
return the right number of sample* in cas eof interruption
small correction in sample* time advance
test file cleanup
calculate maxn taking into account also the numeric precision of the type in use
finally fix the statistics...
Merge branch 'master' into mac