removed finished todo
factored out numDivisions
removed unused code
added docs
reduced allocations to improve performance
added a monkey patch for numeric.js to improve performance