"If you want generic functions for doing matrix operations, then I suggest lifting them from the Sparkfun 9dof IMU DCM source code or ArduIMU or somewhere. I haven't found a downloadable library for those funcitons either.
"Two layers should be sufficient with nearly any type of woven fabric, and even one would probably suffice for a lightly loaded wing. Prepreg will definitely give a better result but if you go with a wet-layup then I strongly suggest vacuum bagging…"