fixes #14 adding maxDataPoints param

* applying changes based on #14