implemented add functionality and tests

Another update dude!