Tidied up joystick class, documented.