Bug/api fixes

Fixes the bug which stops the api working. Basically just missing params on Programme::get_as_flattened()