More work on converting globals. Very hacky output functions. Some globals still aren't referring to the struct. Struct is being init' to different values.