Cleanup market API, programatically generate docs