Cleanup TRAP loader code
Use const qualifier for TRAP/DIP/MAD loader
rename some symbol to be more readable
cleanup header file references