Added function to check for parity error and edited output formatting. (Still needs to be finished).
Fixed warnings:

Removed const from main second function
Replaced strlen with created function npstrlen.