update serial port handling
handle motion direction more gracefully to take into account users who don't have three channels.
Settings back up file.