Added basic output method
extracted deplete2d.py from notebook