Readded Variables

Now all the tests work and the variablemanager is implemented properly