Fixed Bugs

It now actually compiles.