Send version 1.0

I believe I have the send algorithm working. I tested it and found a few
bugs, though I must admit that the add function is still not working
properly