All functions implements and working.

This could be a alpha 1, all functions working and getting adequate results.
Now that basic works the refactor need is clear. Part quantity break matching
will also be improved, current one still looks awkward.

But anyway, it is feature complete.