modified io.py
added prep.py and modified io.py