Update xlib
Working
Minor changes
Fix a bug where corrections were in degrees rather than radians