Adding baudrate configuration to the arduino reset and code style fixes