added addip method
Merge pull request #2 from omcbride/feature4

added addip method