Assigned variables and added some comments.
Changed from static to dynamic for nic ip