rewrite

All the settings can be given in the parameter of constructor including
points data.