restructured arguments and added arduino re-connect and autodetect