added imports and license in hitsmate.py
added root class in hitsmate.py