Implement ipFormatSize() and cleanup code
Merge pull request #426 from gergo85/patch-35

Implement ipFormatSize() and cleanup code