Small, general code cleanup 

Removed dead code, improved alignment, fixed warnings, and cleaned up `DumpTGA()`.