further modifications done. now lists all interfaces

as well as getting ips for each interfaces. Although its a
bit of a hack as I just pass the ip ad ls command. There must be
a neeter way of doing it!