added button logic, updated arduino serial communication.