added IO scripts and continued comments in core.py