Fixed all declaration. No functional change

Grouped related declarations
Sorted alphabetically
Fixed position
Added header comments
Fixed pointer positions
Removed old coders comments
Fixed insertions