Add a ping tool and an example as well.
Annotated the examples.
At least try to check the passed m-function: check_m().
Stuff in general