add new options: custom samples and more samples. (major)
add new option to specifiy maxDataSize (default 2000000)
2.0.0