Text this: Flexible Network Codes Design for Cooperative Diversity