Function cleanup, fixed misspelling, tweaked transparency distances to
accomodate lean.
Merge pull request #527 from ey6es/gyroquat

Function cleanup, fixed misspelling, transparency fix.