Proper class/method support in compiler

Compiler will now abstract everything behind a class as it should.