The readme is currently a little bit confusion. Please try to check all the examples and improve it by separating the 1D and 2D. You can also take the opportunity to add jsdoc (tsdoc) in the code.