Fix  a lot of undefined, unused or shared vars
Merge pull request #86 from DieBuche/varCleanup

Fix  a lot of undefined, unused or shared vars