Code refactor

* Subsitute `-` for `_` in `useful-functions.py`, for the module to be importable. 
* Add docstrings and examples.
* Use `doctest`.
* delete the `usefulFunc` class.
* Modify a little bit the functions to make them more consistent.
Add shebang.