added html doctype
added screen clearing before drawing