Ongoing development

Hello, I wanted to write a package implementing exactly what your code implements, so I'm developing on top of yours.

Here you can keep track of what I do and merge if you like.