add data.py and some work in tools.py
first working version