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

Implement ipFormatSize() and cleanup code