Updating add function, needs work, but takes variables from $argv rather than readline