Auto-find COM port, small bug fix in send()
Move most code into a PR524 class