Made small tweaks neccessary to api.go to have working prototype.