added comments to dd.js
fixed a bug that caused an error to show when it wasn't an error