Added return code to setipaddress and removed fprintfs

Added return code to setipaddress and removed fprintfs
Merge branch 'change_setipaddress_retcode' into develop