Some code reconstruction and improvement.

Still in alpha. Also added type of data check, and example of using.
Renamed to "nettool.py".