Clean up warnings and errors.

Format consistently.
Move NHC length warning to avoid using an uninitialized value.
Add some missing exit call with errors.

Close #51.
Merge branch 'master' into sim_params
Merge branch 'sim_params'

Conflicts:
	src/interface/sim_params/set_sim_params.c