dropping fn's and unit tests

* Dropping unneeded fn's for counting ones in message segment and identifying parity errors.