added optional target to engine.canvas.clear(), fixed comments