moved some uart handling functionality out of the rate controller main function.