Added Redraw and Attributes commands and added more comments