Adding global vars and gpio stuff
git fix