API will now compile

I still need a robot to make sure that all of the code is working, but
it does compile for now.