removed command name logging, this was just for debugging
added auto-resize of the canvas