Added joystick file descripter field to config, switched -s and -d
startup flags around, added a function for stripping strings of
unwanted characters.