added recieve function; refactored Arduino