Fix warnings about unused arguments
Remove some dead code and unused variables
Silence some warnings about unused code
Silence warning about implicit typecast
Some code formatting tweaks
Fix bug in nAEpInpMult

This was uncovered by a compiler warning.
Merge pull request #517 from fingolfin/fix-warnings

Fix warnings and a bug in nAEpName