Add tests for Generator Polynominal and Error Correction
Refactor Error Correction