added screen variables to global variables
properly indented and commented saveScreen.js