moduledata task now using API class to get programmes

Also fixed a bug getting the correct pos_code value out and in the programme index data