Fix localparam.
Added structs.
Fixed generic typedefs.