Typedef cleanup. Named anonymous structs and enums
UI cleanup. Removed a whole bunch of unused code.