Removed assignments that don't do anything.
Addition of noreturn to abort so static analysis doesn't complain.
Removed unused commented code (version info with PACKAGE_URL).
Comment cleanup. Added several error checks.