Fixed board definition of PIN_MAX. Minor cleanup.