comment
fiddling with suggested parameters
fix command
add maxgap
error estimating function