Rename dec1.js to drawing_pad.js
Add documentation; remove unused code