Completed add function

The function now preforms as intended. More testing needed.
Removed WIP mark

Since the function is now operable and in testing phase the WIP mark is
removed.