Added more documentation to draw.js