some smaller bugs corrected
changed adaptive speed to something more sensible
corrected small bug