Converterd many data structures to fixed point to enable matlab to C conversion