fixed bug in add()
added funcionality to the add method

fixed #1
enhanced #2