Trivial changes:
Code Cleanup
Output Cleanup & Optimization
Non tirvial change:
sub get_ip optimization