Add runs test to main code.
Better bounds checking in correlation lenght computation.  Fix runs.sh.
add more options for correlation length