reset function added to screen
massive improvements. fixes a very annoying bug in the matrix