Updated add() method to accept array or string as input

There we go :)