Comments modified, inserted a new constructor for the ip class