add README.md
fix example
fix extension .mm to .cpp
added function and handling when ip isn't detected.
Merge pull request #1 from 2bbb/PR