update dan.py -- added initial comments

comments were added