moved arduino stuff onto arduino as much as possible. myclosefunc modified to close the serial object on closing the window.. this causes a great deal of problems with windows COM port.. gets greyed out