refactor alignment calculation
fix byte opcode bug
more alignment; couple bug fixes
more on alignment
Merge pull request #1458 from WalterBright/b2

More alignment refactoring