Cleaning

chears to @Nao for his tiny litte tool to detect unused and duplicate globals..