fixed bug while looping through linked list of addresses
daemonized process and changed exit status values