fec: bug fixes, updates. Adding BER curver utilities and tests.