Fixed compiler bugs
Fixed compiler bugs...runs, but doesn't work that well