Added var to some accidentally global variables
Merge pull request #4 from m101010ax/pushes

Added var to some accidentally global variables