More ham_bench fixes and improvements
Code cleanups
Started with the PAX layout implementation
Many bug fixes based on coverity's static code analysis