added invert to encoders
tested luddef with real encoders. it works great!